﻿using Fuse8.ContentManagementFramework.Administration.Attributes;
using Fuse8.ContentManagementFramework.Web.MvcPowered;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;

namespace Fuse8.ContentManagementFramework.Administration.Models
{
    public class ForcedPasswordChangeModel
    {
        [GlobalizedRequired("New password is required", "cms_Users")]
        [DataType(DataType.Password)]
        [GlobalizedDisplay("New password", "cms_Users")]
        [StrongPassword]
        public string NewPassword { get; set; }

        [GlobalizedRequired("Please repeat password", "cms_Users")]
        [DataType(DataType.Password)]
        [GlobalizedDisplay("Repeat password", "cms_Users")]
        [GlobalizedCompare("NewPassword", "Passwords do not match", "cms_Users")]
        public string RepeatPassword { get; set; }
    }
}